package com.gitee.linmt;

import com.gitee.linmt.entity.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Curd 测试.
 *
 * @author <a href="mailto:lin-mt@outlook.com">lin-mt</a>
 */
@RestController
@RequestMapping("/curd")
public class CurdController {
    
    @GetMapping("/create/success")
    public Result<Object> success() {
        return Result.createSuccess();
    }
    
    @GetMapping("/create/failure")
    public Result<Object> failure() {
        return Result.createFailure();
    }
}
